with open('work.txt','w') as f:
    f.write('你好，世界\n'
            'hello world')


with open('work.txt','r') as f:
    f = f.read()
    print(f)